# 成功的传值
def make_great1(magicans, new_magicans):
    # 把原始列表清空，修改后加入新的列表
    while magicans:
        new_magican = "the Great " + magicans.pop()
        new_magicans.append(new_magican)
    # 把新的列表传给原始列表
    for new_magican in new_magicans:
        magicans.append(new_magican)


# 失败的传值
def make_great(magicans):
    new_magicans = []
    for magican in magicans:
        magican = "the Great " + magican
        new_magicans.append(magican)
    #print(new_magicans)
#    print(magicans)
#    print(magicans)
    #print(magicans)
def show_magicans(magicans):
    """打印每个魔术师的名字"""
    for magican in magicans:
        print(magican)


magicans = ['John', 'Jam', 'Lisa', 'Alis']
new_magicans = []

print("修改后显示魔术师列表")
#make_great(magicans)
# 不变的魔术师
make_great1(magicans[:], new_magicans)
print("-------------------")
show_magicans(magicans)
print("-------------------")
show_magicans(new_magicans)
